#confing=utf-8

import xadmin
import xadmin.views as xviews
from django.core import urlresolvers
from .models import *

#文章
# class ArticleAdmin(object):
#     search_fields = ('title')
#     #fields = ('id', 'name', 'password' )
#     list_display = ('id', 'title', 'content' )   # 定义列表中显示的字段
#
# xadmin.site.register(Article, ArticleAdmin)

class hostsAdmin(object):
    search_fields = ('host_name')
    #fields = ('id', 'name', 'password' )
    list_display = ('host_name', 'host_ip', 'host_beizhu' )   # 定义列表中显示的字段

xadmin.site.register(hosts, hostsAdmin)